package org.example.mbg.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;

public class Product implements Serializable {
    @ApiModelProperty(value = "商品id")
    private Long id;

    @ApiModelProperty(value = "商品类型：0果蔬、1花卉、2特产")
    private Long page;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "图片")
    private String pic;

    @ApiModelProperty(value = "销量")
    private Integer sale;

    @ApiModelProperty(value = "原价")
    private BigDecimal price;

    @ApiModelProperty(value = "商品描述（简介）")
    private String description;

    @ApiModelProperty(value = "画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @ApiModelProperty(value = "折后价")
    private BigDecimal discount;

    @ApiModelProperty(value = "收藏人数")
    private Long cfav;

    @ApiModelProperty(value = "数组类型，服务类目，如“极速退款”，“运费险”，“48小时内发货”等")
    private String services;

    @ApiModelProperty(value = "所属店铺")
    private Long shopId;

    @ApiModelProperty(value = "商品详情图片")
    private String detailImg;

    @ApiModelProperty(value = "商品详情关键字，逗号隔开")
    private String detailKey;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPage() {
        return page;
    }

    public void setPage(Long page) {
        this.page = page;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getSale() {
        return sale;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAlbumPics() {
        return albumPics;
    }

    public void setAlbumPics(String albumPics) {
        this.albumPics = albumPics;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public Long getCfav() {
        return cfav;
    }

    public void setCfav(Long cfav) {
        this.cfav = cfav;
    }

    public String getServices() {
        return services;
    }

    public void setServices(String services) {
        this.services = services;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getDetailImg() {
        return detailImg;
    }

    public void setDetailImg(String detailImg) {
        this.detailImg = detailImg;
    }

    public String getDetailKey() {
        return detailKey;
    }

    public void setDetailKey(String detailKey) {
        this.detailKey = detailKey;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", page=").append(page);
        sb.append(", name=").append(name);
        sb.append(", pic=").append(pic);
        sb.append(", sale=").append(sale);
        sb.append(", price=").append(price);
        sb.append(", description=").append(description);
        sb.append(", albumPics=").append(albumPics);
        sb.append(", discount=").append(discount);
        sb.append(", cfav=").append(cfav);
        sb.append(", services=").append(services);
        sb.append(", shopId=").append(shopId);
        sb.append(", detailImg=").append(detailImg);
        sb.append(", detailKey=").append(detailKey);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}